package com.UdpRecieve.tool.lisichen;

import java.io.IOException;

public class testMain {
    public static void main(String[] args) throws IOException {
        /*String url= CommonEnum.mbUrl.getName();
        JSONObject data=new JSONObject();
        data.put("mod","sysconfig");
        data.put("stype","KuaNetCode");
        data.put("ac","get");
       String ret= HttpUtils.sendPost(url,data);
       System.out.println(ret);*/
        //获取最大上传文件大小
        //System.out.println(HttpUtils.adslGetBlockSize());
        //获取版本信息
       // System.out.println(HttpUtils.adslGetVersion());
        //加密
        //HttpUtils.adslAddSlabel("/home/andin/test/Ubuntu12.04菜鸟使用手册合集.pdf","/home/andin/test/slattrs1.xml","/home/andin/test/123456.pdf");
        String a=HttpUtils.adslAddSlabel("E:\\测试数据\\asd.txt","E:\\测试数据\\asd_加标.txt");

        System.out.println("==============="+a);
       //读取加密文件的密级信息
        // HttpUtils.adslReadSlabelInfo("/home/andin/test/987654.pdf","/home/andin/test/987654.txt");
       //  HttpUtils.adslReadSlabelInfo("D:\\webservice\\aaa.txt","D:\\webservice\\aaa1.xml");
        //String a=HttpUtils.adslReadSlabelInfo("D:\\webservice\\qqq.txt", "D:\\webservice\\aaa1.xml");
       // System.out.println("==============="+a);
       //修改加密件的密级信息
        //HttpUtils.adslAddSlabelEx("/home/andin/test/123456.pdf","/home/andin/test/slattrs2.xml","/home/andin/test/987654.pdf");
        //HttpUtils.adslAddSlabelEx("/home/andin/test/1111_ret.txt","/home/andin/test/slattrs2.xml","/home/andin/test/1111_ret_t.txt");
       //解密
        //HttpUtils.adslRemoveSlabel("/opt/admin/phptmp/desc_9_cccccc.txt(1).txt","/home/andin/test/123456_de.pdf");
       // HttpUtils.adslRemoveSlabel("/home/andin/test/1111_ret_t.txt","/home/andin/test/1111_ret_t_de.txt");
        //流转
        //HttpUtils.adslConvertSlabel("/home/andin/test/123456.pdf",0,"cjl","/home/andin/test/123456_ZR.pdf");
       // HttpUtils.adslConvertSlabel("/home/andin/test/1111_ret_t.txt",0,"cjl","/home/andin/test/123456_ZR.txt");
    }
}
